/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * com_distri_compras_altatienda.java
 *
 * Created on 2/04/2014, 12:57:03 PM
 */

package sie_invdis;



import java.sql.*;
import javax.swing.*;
import java.awt.*;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Calendar;
import java.text.*;
import java.text.ParseException;

/**
 *
 * @author michelle
 */
public class com_distri_compras_altatienda extends javax.swing.JFrame {

     private javax.swing.table.DefaultTableModel jtable_modelo_detallecompra;
    private bd_conexion x = new bd_conexion() ;
    private SimpleDateFormat formateador = new SimpleDateFormat("dd-MM-yyyy");
    private SimpleDateFormat formateadoresta = new SimpleDateFormat("yyyy-MM-dd");
       //se creaa la variable resultset
    private ResultSet rs = null;
    int controlcombo=0,controlpro=0,sihaytotal=0,controlcargo=0,elementosmodelo=0,indicetermina=0,hayregistros=0,yacarguedistrirecepciones=0,indexactual=0,errorimp=0;
    /** Creates new form com_distri_compras_altatienda */
    public com_distri_compras_altatienda() {
        this.iniciar_modelo_de_tabla();
        initComponents();
         java.util.Date fechahoya=new Date();

        this.jdc_fechadocto.setDate(fechahoya);
        this.jdc_fecharef.setDate(fechahoya);
        this.jdc_fecharecepcion.setDate(fechahoya);
        this.loadcom_clasifoviajes();
        this.jtf_idtienda.setText(String.valueOf(variables_global.getidtiendami()));
        this.jtf_idcliente.setText(variables_global.getcliente_tistribucion());

    }

    private void iniciar_modelo_de_tabla()
    {
        jtable_modelo_detallecompra=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_detallecompra.addColumn("<html><b>Id</b></html>");
        jtable_modelo_detallecompra.addColumn("<html><b>Clave</b></html>");
        jtable_modelo_detallecompra.addColumn("<html><b>C.Barra</b></html>");
        jtable_modelo_detallecompra.addColumn("<html><b>Descripcion</b></html>");
        jtable_modelo_detallecompra.addColumn("<html><b>Item Prov</b></html>");
        jtable_modelo_detallecompra.addColumn("<html><b>Cant</b></html>");
        jtable_modelo_detallecompra.addColumn("<html><b>Precio</b></html>");
        jtable_modelo_detallecompra.addColumn("<html><b>Importe</b></html>");
        jtable_modelo_detallecompra.addColumn("<html><b>Observacion</b></html>");

    }
     private void carga_datos_proveedor(int opcion,String textobusca)
    {
       //invoco al metodo que trae el recordset de datos
       //voy por el detalle del documento
    int encontro=0;
       try
       {
            rs = x.sieuno_executediversosv2("select * from x1distribucion_terminados_proveedores("+opcion+",'"+textobusca+"') as (idpro character varying(12),descripcion character varying(60),direccion character varying(50),colonia character varying(50),poblacion character varying(40),cp character varying(6),rfc character varying(15),curp character varying(20),telefono character varying(30),fax character varying(15),email character varying(50),clasificacion character varying(10),diascredito smallint,limitecredito numeric,descproveedor numeric,fecultventa date,fecultpago date,inicialprovee character varying(20),observa character varying(80),inicialesfinal character varying(3),ctacontrol smallint,subfam smallint,idstatus smallint,acumuladocom numeric,bitacora text,descripclasif character varying(40),obserclasif character varying(30),descripcuenta text,obsercuenta text,describestatus text);",variables_global.getconexiongral());
            while (rs.next())
                {
                        encontro=1;
                        this.jtf_idproveedor.setText(rs.getString("idpro"));
                        this.jtf_describeproveedor.setText(rs.getString("descripcion"));
                       
                }
        }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }

if (encontro==1)
    {
        JOptionPane.showMessageDialog(null,"<html><h2><b>ID Proveedor: "+textobusca+"<BR>Nombre:"+this.jtf_describeproveedor.getText()+" <br>Por Favor Asegurese que el Nombre es el Correcto, Gracias</h2></b></html>", "Sistema Integral(Alta) : Confirmacion",1);
        this.jep_observaciones.requestFocus();
        controlpro=1;

    }
else
    {
        JOptionPane.showMessageDialog(null," Error Proveedor:"+textobusca+" No Existe", "Sistema Integral(Alta) : Error",1);
        this.jtf_idproveedor.requestFocus();
        controlpro=0;
    }

   }
private void loadcom_clasifoviajes()
    {
            this.jcmbx_clasifviaje.removeAllItems();
            this.jcmbx_clasifviaje.addItem("0"+"::"+"ELEGIR Viaje");
            String texto="select * from x1distribucion_terminados_viajes(5,0,'') as (id integer,describe character varying(30),idinicialclave character varying(3));";
             System.out.println(texto);
            try
            {
                rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
               while (rs.next())
                    {
                      this.jcmbx_clasifviaje.addItem(rs.getString("id")+":"+rs.getString("idinicialclave")+":"+rs.getString("describe"));
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }

    }
private void articulo_buscar(int rbbuscam,int rbopbuscam,String busqueda)
 {
       String texto="select * from x1distribucion_terminados_articulos_catalogov2("+rbbuscam+","+rbopbuscam+",'"+busqueda+"') as (id character varying(16),codbarra character varying(16),describearticulo character varying(80),idfamilia character varying(5),precio5 numeric,valor_x character varying(20),familiadescribe character varying(40))";
       System.out.println(texto);
       int banderafin=0;
       DecimalFormat miformat = new DecimalFormat("############.##");
       try
        {
           rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
            while (rs.next())
                {
                this.jtf_idarticulo.setText(rs.getString("id"));

                this.jtf_clavebarra.setText(rs.getString("codbarra"));
                this.jtf_insumodescripcion.setText(rs.getString("describearticulo"));
                this.jtf_itemprov.setText(rs.getString("valor_x"));
                this.jtf_precioventa.setText(miformat.format(rs.getFloat("precio5")));
                this.jtf_familia.setText(rs.getString("familiadescribe"));
                banderafin=1;
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
     if(banderafin==0)
         {
           JOptionPane.showMessageDialog(null,"Clave:"+busqueda+" No Encontrado", "Sistema Integral(Modificar articulo) : Ayuda",1);
         }
 }
private void articulo_buscar_import(int rbbuscam,int rbopbuscam,String busqueda,String precio)
 {
       String texto="select * from x1distribucion_terminados_articulos_catalogov2("+rbbuscam+","+rbopbuscam+",'"+busqueda+"') as (id character varying(16),codbarra character varying(16),describearticulo character varying(80),idfamilia character varying(5),precio5 numeric,valor_x character varying(20),familiadescribe character varying(40))";
       System.out.println(texto);
       int banderafin=0;
       DecimalFormat miformat = new DecimalFormat("############.##");
       try
        {
           rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
            while (rs.next())
                {
                this.jtf_idarticulo.setText(rs.getString("id"));

                this.jtf_clavebarra.setText(rs.getString("codbarra"));
                this.jtf_insumodescripcion.setText(rs.getString("describearticulo"));
                this.jtf_itemprov.setText(rs.getString("valor_x"));
                this.jtf_precioventa.setText(miformat.format(rs.getFloat("precio5")));
                if(Float.valueOf(precio.trim())==rs.getFloat("precio5"))
                    {
                    banderafin=1;
                    }
                else
                    {
                        errorimp=1;
                        JOptionPane.showMessageDialog(null,"<html><h3><b>Clave: "+busqueda+"<br>Precio es "+this.jtf_precioventa.getText()+"<br>Precio Solicitado:"+precio+"<br> es Diferente del Original, por Favor Verifique e Inicie Proceso Nuevamente</b></h3></html>", "Sistema Integral(Modificar articulo) : Ayuda",1);

                    }
                this.jtf_familia.setText(rs.getString("familiadescribe"));
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
     if(banderafin==0)
         {
           errorimp=1;
           JOptionPane.showMessageDialog(null,"Clave:"+busqueda+" No Encontrado", "Sistema Integral(Modificar articulo) : Ayuda",1);
         }
 }
 private void calcularimportes()
    {
     DecimalFormat miforma = new DecimalFormat("###############.##");
     int numerofilas=this.jtable_modelo_detallecompra.getRowCount(),error=0;
    float cantidad=0,costo=0,importefila=0,piezasindi=0,total=0;
    for(int i = 0 ;i < numerofilas; i++)
                {
                 try
                       {
                            cantidad = Float.valueOf(this.jtb_terminadosentrada.getValueAt(i, 5).toString()).floatValue();
                            piezasindi+=cantidad;
                            costo = Float.valueOf(this.jtb_terminadosentrada.getValueAt(i, 6).toString()).floatValue();
                            importefila=(cantidad*costo);
                            total+=importefila;
                        }
                        catch (NumberFormatException nfe)
                        {
                            cantidad=0;
                            costo=0;
                            error=1;
                        }
                jtable_modelo_detallecompra.setValueAt(importefila,i,7);
                }
    this.jtf_cantidadpiezas.setText(miforma.format(piezasindi));
    this.jtf_doctototal.setText(miforma.format(total));

    }

 private void documento_guardar(int opcion)
    {
        ResultSet rs = null;
        float cantidad=0;
        int nobjetotabla=this.jtb_terminadosentrada.getRowCount();
        int fi=0,controlfolio=0;
        String cadenafilas="{'", arreglo_articulos[]=null;
        if(JOptionPane.showConfirmDialog(null, "<html><h2>Documento:"+this.tf_foliodoctoanterior.getText()+"<br>Viaje :"+this.jcmbx_clasifviaje.getSelectedItem()+"<br> Piezas:"+this.jtf_cantidadpiezas.getText()+"<br>Precio Factura:"+this.jtf_doctototal.getText()+"<br>sera Guardado. Estan correcto sus Datos?</h2></html>")==0)
                    {
                    //this.quitardescripcion();
                    java.util.Vector arreglodearticulos=this.jtable_modelo_detallecompra.getDataVector();
                    String articulos_papostgresql=arreglodearticulos.toString();
                    articulos_papostgresql=articulos_papostgresql.replace('[','{');
                    articulos_papostgresql=articulos_papostgresql.replace(']','}');
                    articulos_papostgresql=articulos_papostgresql.replace("null",".");

                    String arreglo_viaje[]=this.jcmbx_clasifviaje.getSelectedItem().toString().split(":");
                    String texto="select * from x1distribucion_terminados_entra_doctos_insbodegav2("+opcion+",'"+this.tf_foliodoctoanterior.getText().toUpperCase()+"','"+this.fechaamericana(this.jdc_fechadocto.getDate())+"','"+this.fechaamericana(this.jdc_fecharef.getDate())+"','"+this.fechaamericana(this.jdc_fecharecepcion.getDate())+"',0,0,'"+this.jtf_idproveedor.getText().toUpperCase()+"','"+this.tf_foliodoctoanterior.getText().toUpperCase()+" "+this.jep_observaciones.getText().toUpperCase().replace(",", "").replace("]", "").replace("[", "").replace("{", "").replace("}", "")+"','"+variables_global.getLogin()+"','"+arreglo_viaje[0]+"','"+articulos_papostgresql+"','"+this.jtf_cantidadpiezas.getText()+"','0','0','0','0','0','0','"+this.jtf_idfolio.getText()+"','"+this.jtf_idtienda.getText()+"','"+this.jtf_idcliente.getText()+"','"+this.jtf_remisionblister.getText()+"')";
                    System.out.println(texto);
                    try
                        {
                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                        while (rs.next())
                            {
                            if (rs.getInt(1) > 0)
                                    {
                                        JOptionPane.showMessageDialog(null,"Documento "+rs.getInt(1)+" Correcto, Gracias", "Sistema Integral(Alta Compra) : Confirmacion",1);
                                        this.jtf_idfolio.setText(rs.getString(1));
                                        //this.Limpiar_compra();
                                        while(jtable_modelo_detallecompra.getRowCount()>0)jtable_modelo_detallecompra.removeRow(0);
                                        this.tf_foliodoctoanterior.setText("");
                                        this.jtf_idproveedor.setText("");
                                        this.jtf_remisionblister.setText("");
                                        this.jtf_cantidadpiezas.setText("0");
                                        this.jtf_doctototal.setText("0");
                                        this.jtf_cantidadpiezas1.setText("0");
                                        errorimp=0;
                                        controlpro=0;
                                        hayregistros=0;
                                    }
                                else
                                    {
                                        JOptionPane.showMessageDialog(null," Error Verifique sus Cantidades", "Sistema Integral(Alta Compra) : Error",1);
                                    }
                            }
                        }
                    catch(Exception e) {
                        System.out.println(e.getMessage());
                        JOptionPane.showMessageDialog(null," Recepcion Incorrecta ", "Sistema Integral(Alta Compra) : Error",1);
                    }
                }//fin del if qu confirmo guardar diferencia
    }

 private String fechaamericana(Date fe)
    {
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("yyyy-MM-dd");
       String cadenafecha="";
       cadenafecha= formateadorestaeuropa.format(fe);
       return cadenafecha;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel3 = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jtf_idproveedor = new javax.swing.JTextField();
        tf_foliodoctoanterior = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jdc_fechadocto = new com.toedter.calendar.JDateChooser();
        jdc_fecharef = new com.toedter.calendar.JDateChooser();
        jdc_fecharecepcion = new com.toedter.calendar.JDateChooser();
        jtf_describeproveedor = new javax.swing.JTextField();
        jcmbx_clasifviaje = new javax.swing.JComboBox();
        jCheckBox1 = new javax.swing.JCheckBox();
        jLabel39 = new javax.swing.JLabel();
        jtf_idfolio = new javax.swing.JTextField();
        jep_observaciones = new javax.swing.JTextField();
        jtf_idtienda = new javax.swing.JTextField();
        jtf_idcliente = new javax.swing.JTextField();
        jtf_remisionblister = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtb_terminadosentrada = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }}
            ;
            jLabel17 = new javax.swing.JLabel();
            jtf_idarticulo = new javax.swing.JTextField();
            jbtn_buscar = new javax.swing.JButton();
            jLabel20 = new javax.swing.JLabel();
            jtf_clavebarra = new javax.swing.JTextField();
            jLabel18 = new javax.swing.JLabel();
            jtf_insumodescripcion = new javax.swing.JTextField();
            jlbl_costo2 = new javax.swing.JLabel();
            jtf_itemprov = new javax.swing.JTextField();
            jLabel26 = new javax.swing.JLabel();
            jtf_precioventa = new javax.swing.JTextField();
            jLabel27 = new javax.swing.JLabel();
            jtf_clavecantidad = new javax.swing.JTextField();
            jbtn_agregardetalle = new javax.swing.JButton();
            jLabel46 = new javax.swing.JLabel();
            jtf_cantidadpiezas1 = new javax.swing.JTextField();
            jLabel19 = new javax.swing.JLabel();
            jtf_cantidadpiezas = new javax.swing.JTextField();
            jLabel14 = new javax.swing.JLabel();
            jtf_doctototal = new javax.swing.JTextField();
            jScrollPane5 = new javax.swing.JScrollPane();
            jta_archivo = new javax.swing.JTextArea();
            jLabel24 = new javax.swing.JLabel();
            jbtn_importar = new javax.swing.JButton();
            jbtn_guardar = new javax.swing.JButton();
            jtf_importaprecio = new javax.swing.JTextField();
            jtf_familia = new javax.swing.JTextField();
            jMenuBar1 = new javax.swing.JMenuBar();
            jMenu1 = new javax.swing.JMenu();
            jMenuItem1 = new javax.swing.JMenuItem();
            jmni_salir_singuar = new javax.swing.JMenuItem();
            jMenu2 = new javax.swing.JMenu();
            jMenuItem3 = new javax.swing.JMenuItem();
            jMenuItem2 = new javax.swing.JMenuItem();

            setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
            setName("Form"); // NOI18N

            org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(sie_invdis.Sie_invdisApp.class).getContext().getResourceMap(com_distri_compras_altatienda.class);
            jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel3.border.title"))); // NOI18N
            jPanel3.setName("jPanel3"); // NOI18N

            jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
            jLabel6.setName("jLabel6"); // NOI18N

            jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
            jLabel5.setName("jLabel5"); // NOI18N

            jtf_idproveedor.setFont(resourceMap.getFont("jtf_idproveedor.font")); // NOI18N
            jtf_idproveedor.setToolTipText(resourceMap.getString("jtf_idproveedor.toolTipText")); // NOI18N
            jtf_idproveedor.setName("jtf_idproveedor"); // NOI18N
            jtf_idproveedor.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_idproveedorActionPerformed(evt);
                }
            });

            tf_foliodoctoanterior.setFont(resourceMap.getFont("tf_foliodoctoanterior.font")); // NOI18N
            tf_foliodoctoanterior.setToolTipText(resourceMap.getString("tf_foliodoctoanterior.toolTipText")); // NOI18N
            tf_foliodoctoanterior.setName("tf_foliodoctoanterior"); // NOI18N
            tf_foliodoctoanterior.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    tf_foliodoctoanteriorActionPerformed(evt);
                }
            });

            jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
            jLabel3.setName("jLabel3"); // NOI18N

            jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
            jLabel1.setName("jLabel1"); // NOI18N

            jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
            jLabel7.setName("jLabel7"); // NOI18N

            jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
            jLabel10.setName("jLabel10"); // NOI18N

            jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
            jLabel8.setName("jLabel8"); // NOI18N

            jdc_fechadocto.setDateFormatString(resourceMap.getString("jdc_fechadocto.dateFormatString")); // NOI18N
            jdc_fechadocto.setName("jdc_fechadocto"); // NOI18N

            jdc_fecharef.setDateFormatString(resourceMap.getString("jdc_fecharef.dateFormatString")); // NOI18N
            jdc_fecharef.setName("jdc_fecharef"); // NOI18N

            jdc_fecharecepcion.setDateFormatString(resourceMap.getString("jdc_fecharecepcion.dateFormatString")); // NOI18N
            jdc_fecharecepcion.setName("jdc_fecharecepcion"); // NOI18N

            jtf_describeproveedor.setEditable(false);
            jtf_describeproveedor.setFont(resourceMap.getFont("jtf_describeproveedor.font")); // NOI18N
            jtf_describeproveedor.setToolTipText(resourceMap.getString("jtf_describeproveedor.toolTipText")); // NOI18N
            jtf_describeproveedor.setName("jtf_describeproveedor"); // NOI18N
            jtf_describeproveedor.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_describeproveedorActionPerformed(evt);
                }
            });

            jcmbx_clasifviaje.setName("jcmbx_clasifviaje"); // NOI18N
            jcmbx_clasifviaje.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jcmbx_clasifviajeActionPerformed(evt);
                }
            });

            jCheckBox1.setText(resourceMap.getString("jCheckBox1.text")); // NOI18N
            jCheckBox1.setName("jCheckBox1"); // NOI18N
            jCheckBox1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jCheckBox1ActionPerformed(evt);
                }
            });

            jLabel39.setText(resourceMap.getString("jLabel39.text")); // NOI18N
            jLabel39.setName("jLabel39"); // NOI18N

            jtf_idfolio.setEditable(false);
            jtf_idfolio.setFont(resourceMap.getFont("jtf_idfolio.font")); // NOI18N
            jtf_idfolio.setText(resourceMap.getString("jtf_idfolio.text")); // NOI18N
            jtf_idfolio.setToolTipText(resourceMap.getString("jtf_idfolio.toolTipText")); // NOI18N
            jtf_idfolio.setName("jtf_idfolio"); // NOI18N
            jtf_idfolio.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_idfolioActionPerformed(evt);
                }
            });

            jep_observaciones.setName("jep_observaciones"); // NOI18N
            jep_observaciones.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jep_observacionesActionPerformed(evt);
                }
            });

            jtf_idtienda.setEditable(false);
            jtf_idtienda.setText(resourceMap.getString("jtf_idtienda.text")); // NOI18N
            jtf_idtienda.setToolTipText(resourceMap.getString("jtf_idtienda.toolTipText")); // NOI18N
            jtf_idtienda.setName("jtf_idtienda"); // NOI18N
            jtf_idtienda.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_idtiendaActionPerformed(evt);
                }
            });

            jtf_idcliente.setEditable(false);
            jtf_idcliente.setText(resourceMap.getString("jtf_idcliente.text")); // NOI18N
            jtf_idcliente.setToolTipText(resourceMap.getString("jtf_idcliente.toolTipText")); // NOI18N
            jtf_idcliente.setName("jtf_idcliente"); // NOI18N
            jtf_idcliente.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_idclienteActionPerformed(evt);
                }
            });

            jtf_remisionblister.setFont(resourceMap.getFont("jtf_remisionblister.font")); // NOI18N
            jtf_remisionblister.setToolTipText(resourceMap.getString("jtf_remisionblister.toolTipText")); // NOI18N
            jtf_remisionblister.setName("jtf_remisionblister"); // NOI18N
            jtf_remisionblister.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_remisionblisterActionPerformed(evt);
                }
            });

            jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
            jLabel9.setName("jLabel9"); // NOI18N

            javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
            jPanel3.setLayout(jPanel3Layout);
            jPanel3Layout.setHorizontalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jLabel39)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jtf_idfolio, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jdc_fechadocto, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel7)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jdc_fecharef, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel10)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jdc_fecharecepcion, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel8)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jcmbx_clasifviaje, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jLabel3)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(tf_foliodoctoanterior, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel5)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jtf_idproveedor, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jCheckBox1)
                            .addGap(8, 8, 8)
                            .addComponent(jtf_describeproveedor, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel6)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jep_observaciones, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel9)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jtf_idtienda, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jtf_idcliente, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addComponent(jtf_remisionblister, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap())
            );
            jPanel3Layout.setVerticalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel39)
                            .addComponent(jtf_idfolio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1))
                        .addComponent(jdc_fechadocto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jcmbx_clasifviaje, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtf_idtienda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtf_idcliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8))
                        .addComponent(jLabel7)
                        .addComponent(jdc_fecharef, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel10)
                        .addComponent(jdc_fecharecepcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(tf_foliodoctoanterior, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtf_idproveedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5)
                            .addComponent(jtf_describeproveedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCheckBox1)
                            .addComponent(jLabel6)
                            .addComponent(jep_observaciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel9))
                        .addComponent(jtf_remisionblister, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(58, 58, 58))
            );

            jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel1.border.title"))); // NOI18N
            jPanel1.setName("jPanel1"); // NOI18N

            jScrollPane1.setName("jScrollPane1"); // NOI18N

            jtb_terminadosentrada.setModel(this.jtable_modelo_detallecompra);
            jtb_terminadosentrada.setName("jtb_terminadosentrada"); // NOI18N
            jtb_terminadosentrada.setRowHeight(23);
            jtb_terminadosentrada.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
                public void propertyChange(java.beans.PropertyChangeEvent evt) {
                    jtb_terminadosentradaPropertyChange(evt);
                }
            });
            jtb_terminadosentrada.addKeyListener(new java.awt.event.KeyAdapter() {
                public void keyPressed(java.awt.event.KeyEvent evt) {
                    jtb_terminadosentradaKeyPressed(evt);
                }
            });
            jScrollPane1.setViewportView(jtb_terminadosentrada);

            jLabel17.setText(resourceMap.getString("jLabel17.text")); // NOI18N
            jLabel17.setName("jLabel17"); // NOI18N

            jtf_idarticulo.setToolTipText(resourceMap.getString("jtf_idarticulo.toolTipText")); // NOI18N
            jtf_idarticulo.setName("jtf_idarticulo"); // NOI18N
            jtf_idarticulo.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_idarticuloActionPerformed(evt);
                }
            });

            jbtn_buscar.setIcon(resourceMap.getIcon("jbtn_buscar.icon")); // NOI18N
            jbtn_buscar.setText(resourceMap.getString("jbtn_buscar.text")); // NOI18N
            jbtn_buscar.setToolTipText(resourceMap.getString("jbtn_buscar.toolTipText")); // NOI18N
            jbtn_buscar.setName("jbtn_buscar"); // NOI18N
            jbtn_buscar.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jbtn_buscarActionPerformed(evt);
                }
            });

            jLabel20.setText(resourceMap.getString("jLabel20.text")); // NOI18N
            jLabel20.setName("jLabel20"); // NOI18N

            jtf_clavebarra.setEditable(false);
            jtf_clavebarra.setToolTipText(resourceMap.getString("jtf_clavebarra.toolTipText")); // NOI18N
            jtf_clavebarra.setName("jtf_clavebarra"); // NOI18N
            jtf_clavebarra.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_clavebarraActionPerformed(evt);
                }
            });

            jLabel18.setText(resourceMap.getString("jLabel18.text")); // NOI18N
            jLabel18.setName("jLabel18"); // NOI18N

            jtf_insumodescripcion.setEditable(false);
            jtf_insumodescripcion.setToolTipText(resourceMap.getString("jtf_insumodescripcion.toolTipText")); // NOI18N
            jtf_insumodescripcion.setName("jtf_insumodescripcion"); // NOI18N
            jtf_insumodescripcion.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_insumodescripcionActionPerformed(evt);
                }
            });

            jlbl_costo2.setText(resourceMap.getString("jlbl_costo2.text")); // NOI18N
            jlbl_costo2.setName("jlbl_costo2"); // NOI18N

            jtf_itemprov.setEditable(false);
            jtf_itemprov.setName("jtf_itemprov"); // NOI18N
            jtf_itemprov.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_itemprovActionPerformed(evt);
                }
            });

            jLabel26.setText(resourceMap.getString("jLabel26.text")); // NOI18N
            jLabel26.setName("jLabel26"); // NOI18N

            jtf_precioventa.setEditable(false);
            jtf_precioventa.setText(resourceMap.getString("jtf_precioventa.text")); // NOI18N
            jtf_precioventa.setToolTipText(resourceMap.getString("jtf_precioventa.toolTipText")); // NOI18N
            jtf_precioventa.setName("jtf_precioventa"); // NOI18N
            jtf_precioventa.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_precioventaActionPerformed(evt);
                }
            });

            jLabel27.setText(resourceMap.getString("jLabel27.text")); // NOI18N
            jLabel27.setName("jLabel27"); // NOI18N

            jtf_clavecantidad.setText(resourceMap.getString("jtf_clavecantidad.text")); // NOI18N
            jtf_clavecantidad.setName("jtf_clavecantidad"); // NOI18N
            jtf_clavecantidad.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_clavecantidadActionPerformed(evt);
                }
            });

            jbtn_agregardetalle.setIcon(resourceMap.getIcon("jbtn_agregardetalle.icon")); // NOI18N
            jbtn_agregardetalle.setText(resourceMap.getString("jbtn_agregardetalle.text")); // NOI18N
            jbtn_agregardetalle.setName("jbtn_agregardetalle"); // NOI18N
            jbtn_agregardetalle.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jbtn_agregardetalleActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addComponent(jLabel27)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jtf_clavecantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel17)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jtf_idarticulo, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jbtn_buscar)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel20)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jtf_clavebarra, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel18)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jtf_insumodescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jlbl_costo2)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jtf_itemprov, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jLabel26)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jtf_precioventa, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jbtn_agregardetalle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap())
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 997, Short.MAX_VALUE)
            );
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel27)
                        .addComponent(jtf_clavecantidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel17)
                        .addComponent(jtf_idarticulo, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jbtn_buscar)
                        .addComponent(jLabel20)
                        .addComponent(jtf_clavebarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel18)
                        .addComponent(jtf_insumodescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jlbl_costo2)
                        .addComponent(jtf_itemprov, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel26)
                        .addComponent(jtf_precioventa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jbtn_agregardetalle))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 309, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(16, Short.MAX_VALUE))
            );

            jLabel46.setText(resourceMap.getString("jLabel46.text")); // NOI18N
            jLabel46.setName("jLabel46"); // NOI18N

            jtf_cantidadpiezas1.setEditable(false);
            jtf_cantidadpiezas1.setText(resourceMap.getString("jtf_cantidadpiezas1.text")); // NOI18N
            jtf_cantidadpiezas1.setName("jtf_cantidadpiezas1"); // NOI18N

            jLabel19.setText(resourceMap.getString("jLabel19.text")); // NOI18N
            jLabel19.setName("jLabel19"); // NOI18N

            jtf_cantidadpiezas.setEditable(false);
            jtf_cantidadpiezas.setText(resourceMap.getString("jtf_cantidadpiezas.text")); // NOI18N
            jtf_cantidadpiezas.setName("jtf_cantidadpiezas"); // NOI18N

            jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
            jLabel14.setName("jLabel14"); // NOI18N

            jtf_doctototal.setEditable(false);
            jtf_doctototal.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
            jtf_doctototal.setText(resourceMap.getString("jtf_doctototal.text")); // NOI18N
            jtf_doctototal.setName("jtf_doctototal"); // NOI18N

            jScrollPane5.setName("jScrollPane5"); // NOI18N

            jta_archivo.setColumns(20);
            jta_archivo.setRows(5);
            jta_archivo.setName("jta_archivo"); // NOI18N
            jScrollPane5.setViewportView(jta_archivo);

            jLabel24.setText(resourceMap.getString("jLabel24.text")); // NOI18N
            jLabel24.setToolTipText(resourceMap.getString("jLabel24.toolTipText")); // NOI18N
            jLabel24.setName("jLabel24"); // NOI18N

            jbtn_importar.setIcon(resourceMap.getIcon("jbtn_importar.icon")); // NOI18N
            jbtn_importar.setText(resourceMap.getString("jbtn_importar.text")); // NOI18N
            jbtn_importar.setName("jbtn_importar"); // NOI18N
            jbtn_importar.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jbtn_importarActionPerformed(evt);
                }
            });

            jbtn_guardar.setIcon(resourceMap.getIcon("jbtn_guardar.icon")); // NOI18N
            jbtn_guardar.setText(resourceMap.getString("jbtn_guardar.text")); // NOI18N
            jbtn_guardar.setName("jbtn_guardar"); // NOI18N
            jbtn_guardar.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jbtn_guardarActionPerformed(evt);
                }
            });

            jtf_importaprecio.setEditable(false);
            jtf_importaprecio.setText(resourceMap.getString("jtf_importaprecio.text")); // NOI18N
            jtf_importaprecio.setToolTipText(resourceMap.getString("jtf_importaprecio.toolTipText")); // NOI18N
            jtf_importaprecio.setName("jtf_importaprecio"); // NOI18N
            jtf_importaprecio.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_importaprecioActionPerformed(evt);
                }
            });

            jtf_familia.setEditable(false);
            jtf_familia.setText(resourceMap.getString("jtf_familia.text")); // NOI18N
            jtf_familia.setName("jtf_familia"); // NOI18N

            jMenuBar1.setName("jMenuBar1"); // NOI18N

            jMenu1.setText(resourceMap.getString("jMenu1.text")); // NOI18N
            jMenu1.setName("jMenu1"); // NOI18N

            jMenuItem1.setText(resourceMap.getString("jMenuItem1.text")); // NOI18N
            jMenuItem1.setName("jMenuItem1"); // NOI18N
            jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jMenuItem1ActionPerformed(evt);
                }
            });
            jMenu1.add(jMenuItem1);

            jmni_salir_singuar.setText(resourceMap.getString("jmni_salir_singuar.text")); // NOI18N
            jmni_salir_singuar.setName("jmni_salir_singuar"); // NOI18N
            jmni_salir_singuar.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jmni_salir_singuarActionPerformed(evt);
                }
            });
            jMenu1.add(jmni_salir_singuar);

            jMenuBar1.add(jMenu1);

            jMenu2.setText(resourceMap.getString("jMenu2.text")); // NOI18N
            jMenu2.setName("jMenu2"); // NOI18N

            jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0));
            jMenuItem3.setText(resourceMap.getString("jMenuItem3.text")); // NOI18N
            jMenuItem3.setName("jMenuItem3"); // NOI18N
            jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jMenuItem3ActionPerformed(evt);
                }
            });
            jMenu2.add(jMenuItem3);

            jMenuItem2.setText(resourceMap.getString("jMenuItem2.text")); // NOI18N
            jMenuItem2.setName("jMenuItem2"); // NOI18N
            jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jMenuItem2ActionPerformed(evt);
                }
            });
            jMenu2.add(jMenuItem2);

            jMenuBar1.add(jMenu2);

            setJMenuBar(jMenuBar1);

            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 653, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addComponent(jLabel19)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jtf_cantidadpiezas, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jLabel14)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jtf_doctototal, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jtf_familia)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(jbtn_guardar)
                                .addGap(49, 49, 49)
                                .addComponent(jLabel46)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jtf_cantidadpiezas1, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap())
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel24)
                    .addGap(73, 73, 73)
                    .addComponent(jbtn_importar)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jtf_importaprecio, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(467, Short.MAX_VALUE))
                .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel14)
                                .addComponent(jtf_doctototal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jtf_cantidadpiezas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel19))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jtf_cantidadpiezas1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel46))
                                .addComponent(jbtn_guardar)))
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel24)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jbtn_importar)
                            .addComponent(jtf_importaprecio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtf_familia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap())
            );

            pack();
        }// </editor-fold>//GEN-END:initComponents

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        // TODO add your handling code here:
        if(JOptionPane.showConfirmDialog(null, "Desea Salir?")==0)
        {
            if(hayregistros==0)
                    {
                        this.dispose();
                    }
            else
                    {
                        JOptionPane.showMessageDialog(null,"Existen Registros sin Guardar, Por favor Verifique o en el Menu Archivo Elija Salir sin Guardar", "Sistema Integral(Alta Compras) : Error",1);
                    }
        }
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jtf_idproveedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_idproveedorActionPerformed
        // TODO add yourcarga_datos_proveedor handling code here:
        this.carga_datos_proveedor(1, this.jtf_idproveedor.getText().toUpperCase().trim());
        this.jep_observaciones.getText();

        //this.carga_datos_claveterminacion(1,this.jtf_idproveedor.getText().toUpperCase());
      
}//GEN-LAST:event_jtf_idproveedorActionPerformed

    private void tf_foliodoctoanteriorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tf_foliodoctoanteriorActionPerformed
        // TODO add your handling code here:
//        this.jtf_descuento.requestFocus();
        this.jtf_idproveedor.requestFocus();

}//GEN-LAST:event_tf_foliodoctoanteriorActionPerformed

    private void jtf_describeproveedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_describeproveedorActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jtf_describeproveedorActionPerformed

    private void jcmbx_clasifviajeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcmbx_clasifviajeActionPerformed
        // TODO add your handling code here:

        if  (controlcargo>0) {
            String arreglo_viaje[]=this.jcmbx_clasifviaje.getSelectedItem().toString().split(":");
     
        }
        this.tf_foliodoctoanterior.requestFocus();
    }//GEN-LAST:event_jcmbx_clasifviajeActionPerformed

    private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed
        // TODO add your handling code here:
        this.jtf_idproveedorActionPerformed(evt);
}//GEN-LAST:event_jCheckBox1ActionPerformed

    private void jtf_idfolioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_idfolioActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jtf_idfolioActionPerformed

    private void jtb_terminadosentradaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jtb_terminadosentradaPropertyChange
        // TODO add your handling code here:
        //this.calcularimportes();
        //this.calcular_costoi();
}//GEN-LAST:event_jtb_terminadosentradaPropertyChange

    private void jtb_terminadosentradaKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtb_terminadosentradaKeyPressed
        // TODO add your handling code here:
        System.out.println(evt.getKeyCode());
        System.out.println("Hola");
        if (evt.getKeyCode() == 10) {
            try {
                // this.calcularimportes();
            } catch (Exception ex) {
                System.out.println("ERROR no ha elegido en el cuadro de texto");
            }
        }
}//GEN-LAST:event_jtb_terminadosentradaKeyPressed

    private void jtf_idarticuloActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_idarticuloActionPerformed
        // TODO add your handling code here:
        this.jbtn_buscarActionPerformed(evt);
}//GEN-LAST:event_jtf_idarticuloActionPerformed

    private void jbtn_buscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_buscarActionPerformed
        // TODO add your handling code here:
        String minu="",cantidadarreglo="",codigoi="";
        //minu=this.jtf_minutosaprox.getText();
        //cantidadarreglo=this.jtf_canpzaingresa.getText();
        codigoi=this.jtf_idarticulo.getText();

        if (this.jtf_idarticulo.getText().length() >0) {
            if(JOptionPane.showConfirmDialog(null, "<html><b><h3>Articulo="+this.jtf_idarticulo.getText()+"</h3></b> Desea es Correcto?</html>")==0) {

                this.articulo_buscar(13, 1, codigoi);
                this.jbtn_agregardetalle.requestFocus();
            } else {
                this.jtf_idarticulo.requestFocus();
                this.jtf_idarticulo.selectAll();
            }
        } else {
            JOptionPane.showMessageDialog(null,"Favor de Verificar Precio y codigo", "Sistema Integral(Agregar Articulo) : Error",1);
        }
}//GEN-LAST:event_jbtn_buscarActionPerformed

    private void jtf_clavebarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_clavebarraActionPerformed
        // TODO add your handling code here:

        this.jtf_itemprov.requestFocus();
}//GEN-LAST:event_jtf_clavebarraActionPerformed

    private void jtf_insumodescripcionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_insumodescripcionActionPerformed
        // TODO add your handling code here:
        this.jtf_clavebarra.requestFocus();
}//GEN-LAST:event_jtf_insumodescripcionActionPerformed

    private void jtf_itemprovActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_itemprovActionPerformed
        // TODO add your handling code here:
        //this.jtf_itemderi.setText(this.jtf_itemprov.getText().replace("-", ""));
        //this.jtf_itemderi.requestFocus();
}//GEN-LAST:event_jtf_itemprovActionPerformed

    private void jtf_precioventaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_precioventaActionPerformed
        // TODO add your handling code here:
        this.jtf_clavecantidad.requestFocus();
}//GEN-LAST:event_jtf_precioventaActionPerformed

    private void jtf_clavecantidadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_clavecantidadActionPerformed
        // TODO add your handling code here:
        float can=0;
        can=Float.valueOf(this.jtf_clavecantidad.getText().toString());
        if(can>0)
            {
                this.jtf_idarticulo.requestFocus();
                this.jtf_idarticulo.selectAll();
            }
        else
            {
                JOptionPane.showMessageDialog(null,"su cantidad debe ser mayor que Cero!!", "Sistema Integral(Agregar Articulo) : Error",1);
                this.jtf_clavecantidad.requestFocus();
                this.jtf_clavecantidad.selectAll();
            }
        
}//GEN-LAST:event_jtf_clavecantidadActionPerformed

    private void jbtn_importarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_importarActionPerformed
        // TODO add your handling code here:
    if((this.tf_foliodoctoanterior.getText().toString().length()>0) &&(controlpro==1))
        {
        if(JOptionPane.showConfirmDialog(null, "<html><body><b><h2>Desea Importar Remision:"+this.tf_foliodoctoanterior.getText()+"<br>Proveedor:"+this.jtf_describeproveedor.getText()+"</h2></b></body></html>")==0)
            {
            errorimp=0;
                    String arreglo_importa[]=this.jta_archivo.getText().split("\n");
                    String arreglo_codigo[]=null;
                        for (int i=0;i<arreglo_importa.length;i++)
                            {
                                arreglo_codigo=arreglo_importa[i].split(",");
                                System.out.println("arreglos:"+arreglo_codigo.length);
                                System.out.println("arreglos:"+arreglo_codigo[0].trim().toUpperCase());
                                if(this.tf_foliodoctoanterior.getText().toString().equals(arreglo_codigo[0].trim().toUpperCase()))
                                    {
                                        //InputStreamReader is = new InputStreamReader(fis, "ISO-8859-1");
                                        if(errorimp==0)
                                            {
                                                this.jtf_clavecantidad.setText(arreglo_codigo[6].trim().toUpperCase());
                                                this.articulo_buscar_import(13, 1, arreglo_codigo[2].trim().toUpperCase(),arreglo_codigo[8].trim().toUpperCase());
                                                if(errorimp==0)
                                                    {
                                                        this.jbtn_agregardetalleActionPerformed(evt);
                                                    }
                                                else
                                                    {
                                                    while(jtable_modelo_detallecompra.getRowCount()>0)jtable_modelo_detallecompra.removeRow(0);
                                                    hayregistros=0;
                                                    i=arreglo_importa.length;
                                                    JOptionPane.showMessageDialog(null,"Uno de los articulos no existe por favor de alta e reinicie el proceso!!", "Sistema Integral(Agregar Articulo) : Error",1);
                                                    }
                                            }
                                        else
                                            {
                                                while(jtable_modelo_detallecompra.getRowCount()>0)jtable_modelo_detallecompra.removeRow(0);
                                                i=arreglo_importa.length;
                                            }
                                    }
                                else
                                    {
                                        i=arreglo_importa.length;
                                        while(jtable_modelo_detallecompra.getRowCount()>0)jtable_modelo_detallecompra.removeRow(0);
                                        JOptionPane.showMessageDialog(null,"su remision no Coincide Favor de Verificar!!", "Sistema Integral(Agregar Articulo) : Error",1);
                                        hayregistros=0;
                                    }

                            }

                    hayregistros=1;
                    this.jta_archivo.setText("");
                    //this.jtf_canpzaingresa.setText("0");
                    //this.jtf_idinsumo.setText("");
                    //this.jtf_idinsumo.requestFocus();
                    this.calcularimportes();
                }
            }
        else
            {
                 this.jta_archivo.setText("");
                JOptionPane.showMessageDialog(null,"Favor de Ingresar Remision y/o Proveedor", "Sistema Integral(Agregar Articulo) : Error",1);
            }
       
    }//GEN-LAST:event_jbtn_importarActionPerformed

    private void jbtn_agregardetalleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_agregardetalleActionPerformed
        // TODO add your handling code here:
 float can=0;
        can=Float.valueOf(this.jtf_clavecantidad.getText().toString());
        if(can>0)
            {
        Object[] fnewRowdet = new Object[9];
        if(JOptionPane.showConfirmDialog(null, "<html><h2>Articulo:"+this.jtf_idarticulo.getText()+"<br>C.Barra:"+this.jtf_clavebarra.getText()+"<br> Descripcion:"+this.jtf_insumodescripcion.getText()+"<br>Cantidad:"+this.jtf_clavecantidad.getText()+"<br> Precio:"+this.jtf_precioventa.getText()+"<br>Familia:"+this.jtf_familia.getText()+"<br>Desea Agregar Partida?</h2></html>")==0)
        {
             fnewRowdet[0]=this.jtable_modelo_detallecompra.getRowCount()+1;
             fnewRowdet[1]=this.jtf_idarticulo.getText(); //codigo
             fnewRowdet[2]=this.jtf_clavebarra.getText();//descripcion
             fnewRowdet[3]=this.jtf_insumodescripcion.getText();//item original proveedor
             fnewRowdet[4]=this.jtf_itemprov.getText();//Item Derivado michelle
             fnewRowdet[5]=this.jtf_clavecantidad.getText();
             fnewRowdet[6]=this.jtf_precioventa.getText();
             fnewRowdet[7]="0";
             fnewRowdet[8]=".";
             jtable_modelo_detallecompra.addRow(fnewRowdet);
             this.jtf_clavecantidad.setText("0");
             this.jtf_clavecantidad.requestFocus();
             this.jtf_clavecantidad.selectAll();

             this.calcularimportes();

        }
        else
            {
                errorimp=1;
            }
        }
         else
            {
                JOptionPane.showMessageDialog(null,"su cantidad debe ser mayor que Cero!!", "Sistema Integral(Agregar Articulo) : Error",1);
                this.jtf_clavecantidad.requestFocus();
                this.jtf_clavecantidad.selectAll();
            }
}//GEN-LAST:event_jbtn_agregardetalleActionPerformed

    private void jbtn_guardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_guardarActionPerformed
        // TODO add your handling code here:
  float tpiezas=Float.valueOf(this.jtf_cantidadpiezas.getText().trim());
       int folios=0;
       String arreglo_viaje[]=this.jcmbx_clasifviaje.getSelectedItem().toString().split(":"),folio="";
       if ((Integer.valueOf(arreglo_viaje[0])>0)  && (controlpro==1) && (tpiezas>0) && (!this.jtf_idcliente.getText().toString().equals("all")))
                {
                        this.documento_guardar(1);
                }
       else
            {
                JOptionPane.showMessageDialog(null,"Favor de Verificar Viaje,Proveedor etc", "Sistema Integral(Agregar Produccion) : Error",1);
            }
}//GEN-LAST:event_jbtn_guardarActionPerformed

    private void jtf_idtiendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_idtiendaActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jtf_idtiendaActionPerformed

    private void jtf_idclienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_idclienteActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jtf_idclienteActionPerformed

    private void jep_observacionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jep_observacionesActionPerformed
        // TODO add your handling code here:

        this.jtf_remisionblister.requestFocus();
        this.jtf_remisionblister.selectAll();

        
    }//GEN-LAST:event_jep_observacionesActionPerformed

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        // TODO add your handling code here:
        this.jMenuItem1ActionPerformed(evt);
    }//GEN-LAST:event_jMenuItem3ActionPerformed

    private void jtf_importaprecioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_importaprecioActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jtf_importaprecioActionPerformed

    private void jmni_salir_singuarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_salir_singuarActionPerformed
        // TODO add your handling code here:
        if(JOptionPane.showConfirmDialog(null, "Desea Salir sin Guardar Cambios?")==0)
        {
                this.dispose();

        }
    }//GEN-LAST:event_jmni_salir_singuarActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        // TODO add your handling code here:
               while(jtable_modelo_detallecompra.getRowCount()>0)jtable_modelo_detallecompra.removeRow(0);
               this.tf_foliodoctoanterior.setText("");
               errorimp=0;


    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jtf_remisionblisterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_remisionblisterActionPerformed
        // TODO add your handling code here:
        this.jtf_clavecantidad.requestFocus();
        this.jtf_clavecantidad.selectAll();
}//GEN-LAST:event_jtf_remisionblisterActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new com_distri_compras_altatienda().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JButton jbtn_agregardetalle;
    private javax.swing.JButton jbtn_buscar;
    private javax.swing.JButton jbtn_guardar;
    private javax.swing.JButton jbtn_importar;
    private javax.swing.JComboBox jcmbx_clasifviaje;
    private com.toedter.calendar.JDateChooser jdc_fechadocto;
    private com.toedter.calendar.JDateChooser jdc_fecharecepcion;
    private com.toedter.calendar.JDateChooser jdc_fecharef;
    private javax.swing.JTextField jep_observaciones;
    private javax.swing.JLabel jlbl_costo2;
    private javax.swing.JMenuItem jmni_salir_singuar;
    private javax.swing.JTextArea jta_archivo;
    private javax.swing.JTable jtb_terminadosentrada;
    private javax.swing.JTextField jtf_cantidadpiezas;
    private javax.swing.JTextField jtf_cantidadpiezas1;
    private javax.swing.JTextField jtf_clavebarra;
    private javax.swing.JTextField jtf_clavecantidad;
    private javax.swing.JTextField jtf_describeproveedor;
    private javax.swing.JTextField jtf_doctototal;
    private javax.swing.JTextField jtf_familia;
    private javax.swing.JTextField jtf_idarticulo;
    private javax.swing.JTextField jtf_idcliente;
    private javax.swing.JTextField jtf_idfolio;
    private javax.swing.JTextField jtf_idproveedor;
    private javax.swing.JTextField jtf_idtienda;
    private javax.swing.JTextField jtf_importaprecio;
    private javax.swing.JTextField jtf_insumodescripcion;
    private javax.swing.JTextField jtf_itemprov;
    private javax.swing.JTextField jtf_precioventa;
    private javax.swing.JTextField jtf_remisionblister;
    private javax.swing.JTextField tf_foliodoctoanterior;
    // End of variables declaration//GEN-END:variables

}
